﻿using OpenAI.Domain.IRepositories;
using OpenAI.Infrastructure.Repositories;
using OpenAI.Infrastructure.Services;

namespace OpenAI.WebAPI
{
    public static class InjectionHelp
    {
        public static void Injection(this IServiceCollection services)
        {
            services.AddScoped<IChatSessionRepository, ChatSessionRepository>();
            services.AddScoped<ChatSessionService>();

            services.AddScoped <IChatMessageRepository,ChatMessageRepository>();
            services.AddScoped<ChatMessageService>();

            services.AddScoped<IChatTipRepository, ChatTipRepository>();
            services.AddScoped<ChatTipService>();
        }
    }
}
